const fs = require('fs');
const path = require('path');


function del(ads) {
    let files = fs.readdirSync(ads);
     files.forEach(v => {
        let stat = fs.statSync(path.join(ads, v));
        if (stat.isFile()) {
            fs.unlinkSync(path.join(ads, v))
        } else {
            del(path.join(ads, v))
        }
    })
}

del(path.join(__dirname, "/ceshi"))